{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-block">
            <input type="text" name="row[date]" id="date1" autocomplete="off" value="{$data.date}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">标题</label>
        <div class="layui-input-block">
            <input id="c-title" lay-verify="required" class=" layui-input" name="row[title]" type="text" value="{$data.title}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">金额</label>
        <div class="layui-input-block">
            <input id="c-money" lay-verify="required" class=" layui-input" step="0.01" name="row[money]" type="number" value="{$data.money}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">人员</label>
        <div class="layui-input-block">
            <input id="c-username" lay-verify="required" class=" layui-input" name="row[username]" type="text" value="{$data.username}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input id="c-notes" class=" layui-input" name="row[notes]" type="text" value="{$data.notes}">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm', 'laydate'], function () {
        var yznForm = layui.yznForm;
        var laydate = layui.laydate;
        laydate.render({
            elem: '#date1'
        });
        yznForm.bindevent($("form.layui-form"));
    });

</script>
{/block}